import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/Home.vue'
import Login from '../components/login.vue';
import CanZhuo from '../components/CanZhuo.vue';
import More from '../components/More.vue';
import Member from '../components/Order.vue';
import DianCan from '@/components/DianCan.vue';
import CaiDanGuanLi from '@/components/CaiDanGuanLi.vue';

import Classtable from '../components/CourseTable.vue';
import MyInfo from '../components/MyInfo.vue';
import reSetPassword from '@/components/reSetPassword.vue';
import regist from '@/components/regist.vue';
import clientTable from '@/components/clientTable.vue';
import orderTable from '@/components/orderTable.vue';
import clientOrderTable from '@/components/clientOrderTable.vue';
import orderManage from '@/components/orderManage.vue';
import shouCang from '@/components/shouCang.vue';
import my_order from '@/components/my_order.vue';
Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'home',
        component: Home,
    }, {
        path: '/login',
        name: 'login',
        component: Login
    }, {

        path: '/canzhuo',
        name: 'canzhuo',
        component: CanZhuo
    }, {
        path: '/more',
        component: More,
        children: [{
                path: '',
                name: 'MyInfo',
                component: MyInfo
            },
            {
                path: '/clientTable',
                name: 'clientTable',
                component: clientTable
            }, {
                path: '/orderTable',
                name: 'orderTable',
                component: orderTable
            }, {
                path: '/clientOrderTable',
                name: 'clientOrderTable',
                component: clientOrderTable
            }, {
                path: '/shouCang',
                name: 'shouCang',
                component: shouCang
            }
        ]
    }, {
        path: '/member',
        name: 'member',
        component: Member,
        children: [{
            path: '/order/DianCan',
            name: 'Diancan',
            component: DianCan
        }, {
            path: '/order/CaiDanGuanLi',
            name: 'Caidanguanli',
            component: CaiDanGuanLi
        }, {
            path: '/orderManage',
            name: 'orderManage',
            component: orderManage
        }, {
            path: '/myOrder',
            name: 'myOrder',
            component: my_order
        }]
    },

    {
        path: '/classtable',
        name: 'classtable',
        component: Classtable
    }, {
        path: '/resetpassword',
        name: 'reSetPassword',
        component: reSetPassword
    },
    {
        path: '/regist',
        name: 'regist',
        component: regist
    }

]

const router = new VueRouter({
    routes
})

export default router